package com.ruoyi.manager.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约管理对象 t_reservation
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class TReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约ID */
    private Long id;

    /** 会员ID */
    @Excel(name = "会员ID")
    private Integer memberId;

    /** 场地ID */
    @Excel(name = "场地ID")
    private Integer courtId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /** 预约时长(分钟) */
    @Excel(name = "预约时长(分钟)")
    private Integer duration;

    /** 使用人数 */
    @Excel(name = "使用人数")
    private Integer peopleCount;

    /** 状态 0未使用 1使用中 2已完成 3已取消 */
    @Excel(name = "状态 0未使用 1使用中 2已完成 3已取消")
    private Integer status;

    /** 实际支付金额(分) */
    @Excel(name = "实际支付金额(分)")
    private Long actualFee;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMemberId(Integer memberId)
    {
        this.memberId = memberId;
    }

    public Integer getMemberId()
    {
        return memberId;
    }

    public void setCourtId(Integer courtId)
    {
        this.courtId = courtId;
    }

    public Integer getCourtId()
    {
        return courtId;
    }

    public void setStartTime(LocalDateTime startTime)
    {
        this.startTime = startTime;
    }

    public LocalDateTime getStartTime()
    {
        return startTime;
    }

    public void setDuration(Integer duration) 
    {
        this.duration = duration;
    }

    public Integer getDuration() 
    {
        return duration;
    }

    public void setPeopleCount(Integer peopleCount) 
    {
        this.peopleCount = peopleCount;
    }

    public Integer getPeopleCount() 
    {
        return peopleCount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setActualFee(Long actualFee) 
    {
        this.actualFee = actualFee;
    }

    public Long getActualFee() 
    {
        return actualFee;
    }

    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("courtId", getCourtId())
            .append("startTime", getStartTime())
            .append("duration", getDuration())
            .append("peopleCount", getPeopleCount())
            .append("status", getStatus())
            .append("actualFee", getActualFee())
            .append("createTime", getCreateTime())
            .append("notes", getNotes())
            .toString();
    }
}
